from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware

from FastApi.Application.User.UserController import user_router

fastapi_app = FastAPI()

origins = ["*"]
fastapi_app.add_middleware(
        CORSMiddleware,
        allow_origins=origins,
        allow_credentials=True,
        allow_methods=["*"],
        allow_headers=["*"],
)

fastapi_app.include_router(user_router, prefix="/user", tags=["user",])

# if __name__ == '__main__':
#     uvicorn.run(app=fastapi_app, host=WEB_HOST, port=WEB_PORT)
